package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;

public class TitleBean extends Bean {

  private Image title;
  private int titleX;
  private int titleY0;
  private int titleY1;
  private int titleW;
  private int titleH;

  public void initBean(Magicanvas arg0) {
    this.title = getImage("/res/img/title.gif");
    trackerImage(this.title, arg0);
    this.titleW = this.title.getWidth(arg0);
    this.titleH = this.title.getHeight(arg0);
    this.titleX = (172 - this.titleW / 2 - 4);
    this.titleY0 = 76;
    this.titleY1 = (153 + this.titleH / 4);
  }

  public int getTitleY0() {
    return this.titleY0;
  }

  public void setTitleY0(int titleY0) {
    this.titleY0 = titleY0;
  }

  public int getTitleY1() {
    return this.titleY1;
  }

  public void setTitleY1(int titleY1) {
    this.titleY1 = titleY1;
  }

  public Image getTitle() {
    return this.title;
  }

  public int getTitleX() {
    return this.titleX;
  }

  public void setTitleX(int titleX) {
    this.titleX = titleX;
  }

  public int getTitleW() {
    return this.titleW;
  }

  public void setTitleW(int titleW) {
    this.titleW = titleW;
  }

  public int getTitleH() {
    return this.titleH;
  }

  public void setTitleH(int titleH) {
    this.titleH = titleH;
  }
}
